package com.zhuoshi.controller;

import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhuoshi.entity.Paymenttype;
import com.zhuoshi.entity.PaymenttypeCustom;
import com.zhuoshi.service.PaymenttypeService;


@Controller
@RequestMapping("paymenttype")
public class PaymenttypeController {
	@Autowired
	private PaymenttypeService paymenttypeService;
	
	@RequestMapping("showPaymenttype")
	@RequiresPermissions("showPaymenttype")
	public String showPaymenttype(Model model,PaymenttypeCustom paymenttypeCustom) {
		List<PaymenttypeCustom> lists = paymenttypeService.showPaymenttype(paymenttypeCustom);
		model.addAttribute("lists", lists);
		return "saleInformation/showPayment";
	}
}
